<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>src.run_developer</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="src-module.html">Package&nbsp;src</a> ::
        Module&nbsp;run_developer
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="src.run_developer-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="src.run_developer-module.html">Module src.run_developer</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring">Created on Aug 13, 2012</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-docstring">This script starts the application, and links/fills all relevant objects.</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-docstring">In contrast to run it can show the pylab-figures (if configured in the </tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-docstring">config-file with show_pylab).</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring">@author: petrina</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-docstring">'''</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package src.error=src.error-module.html"><a title="src.error" class="py-name" href="#" onclick="return doclink('link-0', 'error', 'link-0');">error</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module src.error.log_manager=src.error.log_manager-module.html"><a title="src.error.log_manager" class="py-name" href="#" onclick="return doclink('link-1', 'log_manager', 'link-1');">log_manager</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class src.error.log_manager.Log_manager=src.error.log_manager.Log_manager-class.html"><a title="src.error.log_manager.Log_manager" class="py-name" href="#" onclick="return doclink('link-2', 'Log_manager', 'link-2');">Log_manager</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Package src.processing=src.processing-module.html"><a title="src.processing" class="py-name" href="#" onclick="return doclink('link-3', 'processing', 'link-3');">processing</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Module src.processing.processor=src.processing.processor-module.html"><a title="src.processing.processor" class="py-name" href="#" onclick="return doclink('link-4', 'processor', 'link-4');">processor</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Class src.processing.processor.Processor=src.processing.processor.Processor-class.html"><a title="src.processing.processor.Processor" class="py-name" href="#" onclick="return doclink('link-5', 'Processor', 'link-5');">Processor</a></tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name" targets="Package src.output=src.output-module.html"><a title="src.output" class="py-name" href="#" onclick="return doclink('link-6', 'output', 'link-6');">output</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name" targets="Module src.output.outputmanager=src.output.outputmanager-module.html"><a title="src.output.outputmanager" class="py-name" href="#" onclick="return doclink('link-7', 'outputmanager', 'link-7');">outputmanager</a></tt> <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name" targets="Class src.output.outputmanager.Output_manager=src.output.outputmanager.Output_manager-class.html"><a title="src.output.outputmanager.Output_manager" class="py-name" href="#" onclick="return doclink('link-8', 'Output_manager', 'link-8');">Output_manager</a></tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-9" class="py-name"><a title="src.processing" class="py-name" href="#" onclick="return doclink('link-9', 'processing', 'link-3');">processing</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Module src.processing.link_indicatorset=src.processing.link_indicatorset-module.html"><a title="src.processing.link_indicatorset" class="py-name" href="#" onclick="return doclink('link-10', 'link_indicatorset', 'link-10');">link_indicatorset</a></tt> <tt class="py-keyword">import</tt> <tt id="link-11" class="py-name" targets="Class src.processing.link_indicatorset.Link_indicatorset=src.processing.link_indicatorset.Link_indicatorset-class.html"><a title="src.processing.link_indicatorset.Link_indicatorset" class="py-name" href="#" onclick="return doclink('link-11', 'Link_indicatorset', 'link-11');">Link_indicatorset</a></tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-12" class="py-name"><a title="src.processing" class="py-name" href="#" onclick="return doclink('link-12', 'processing', 'link-3');">processing</a></tt><tt class="py-op">.</tt><tt class="py-name">network_indicatorset</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Network_indicatorset</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-13" class="py-name" targets="Package src.input=src.input-module.html"><a title="src.input" class="py-name" href="#" onclick="return doclink('link-13', 'input', 'link-13');">input</a></tt><tt class="py-op">.</tt><tt class="py-name">database_input</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Database_input</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-14" class="py-name" targets="Package src.configuration=src.configuration-module.html"><a title="src.configuration" class="py-name" href="#" onclick="return doclink('link-14', 'configuration', 'link-14');">configuration</a></tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Module src.configuration.config=src.configuration.config-module.html"><a title="src.configuration.config" class="py-name" href="#" onclick="return doclink('link-15', 'config', 'link-15');">config</a></tt> <tt class="py-keyword">import</tt> <tt id="link-16" class="py-name" targets="Class src.configuration.config.Config=src.configuration.config.Config-class.html"><a title="src.configuration.config.Config" class="py-name" href="#" onclick="return doclink('link-16', 'Config', 'link-16');">Config</a></tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">pylab</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">sys</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">logging</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-comment"># Store current working directory</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable src.run.pwd=src.run-module.html#pwd,Variable src.run_developer.pwd=src.run_developer-module.html#pwd"><a title="src.run.pwd
src.run_developer.pwd" class="py-name" href="#" onclick="return doclink('link-17', 'pwd', 'link-17');">pwd</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">dirname</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">realpath</tt><tt class="py-op">(</tt><tt class="py-name">__file__</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"><tt class="py-comment"># Append current directory to the python path</tt> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="src.run.pwd
src.run_developer.pwd" class="py-name" href="#" onclick="return doclink('link-18', 'pwd', 'link-17');">pwd</a></tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt class="py-comment"># get path for the configfile, loglevel and logfile from the process' parameters</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"><tt class="py-comment"># First passed parameter: Configuration file path</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"><tt id="link-19" class="py-name" targets="Variable src.run.cfgfile=src.run-module.html#cfgfile,Variable src.run_developer.cfgfile=src.run_developer-module.html#cfgfile"><a title="src.run.cfgfile
src.run_developer.cfgfile" class="py-name" href="#" onclick="return doclink('link-19', 'cfgfile', 'link-19');">cfgfile</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">1</tt> <tt class="py-keyword">else</tt> <tt class="py-string">'configuration/better_config1.ini'</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line"> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"><tt id="link-20" class="py-name" targets="Variable src.run.logfile=src.run-module.html#logfile,Variable src.run_developer.logfile=src.run_developer-module.html#logfile"><a title="src.run.logfile
src.run_developer.logfile" class="py-name" href="#" onclick="return doclink('link-20', 'logfile', 'link-20');">logfile</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line"><tt class="py-comment"># Second passed parameter: loglevel as integer value</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">2</tt><tt class="py-op">:</tt>  </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">    <tt class="py-comment"># possible log levels (CRITICAL=50, ERROR=40, WARNING=30, INFO=20, DEBUG=10, not set = 0)</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">        <tt id="link-21" class="py-name" targets="Variable src.run.loglevel=src.run-module.html#loglevel,Variable src.run_developer.loglevel=src.run_developer-module.html#loglevel"><a title="src.run.loglevel
src.run_developer.loglevel" class="py-name" href="#" onclick="return doclink('link-21', 'loglevel', 'link-21');">loglevel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">        <tt class="py-comment"># no numeric value given - use standard log level</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">" is an invalid loglevel! Using standard loglevel instead"</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line"> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line"><tt class="py-comment"># Third passed parameter: file path for the logfile</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"><tt id="link-22" class="py-name"><a title="src.run.loglevel
src.run_developer.loglevel" class="py-name" href="#" onclick="return doclink('link-22', 'loglevel', 'link-21');">loglevel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">strip</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">argv</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">3</tt> <tt class="py-keyword">else</tt> <tt class="py-name">None</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">     </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"><tt class="py-comment"># init logging    </tt> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line"><tt id="link-23" class="py-name"><a title="src.error.log_manager.Log_manager" class="py-name" href="#" onclick="return doclink('link-23', 'Log_manager', 'link-2');">Log_manager</a></tt><tt class="py-op">(</tt><tt id="link-24" class="py-name"><a title="src.run.loglevel
src.run_developer.loglevel" class="py-name" href="#" onclick="return doclink('link-24', 'loglevel', 'link-21');">loglevel</a></tt><tt class="py-op">,</tt> <tt id="link-25" class="py-name"><a title="src.run.logfile
src.run_developer.logfile" class="py-name" href="#" onclick="return doclink('link-25', 'logfile', 'link-20');">logfile</a></tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">     </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"><tt id="link-26" class="py-name" targets="Variable src.run.configparser=src.run-module.html#configparser,Variable src.run_developer.configparser=src.run_developer-module.html#configparser"><a title="src.run.configparser
src.run_developer.configparser" class="py-name" href="#" onclick="return doclink('link-26', 'configparser', 'link-26');">configparser</a></tt> <tt class="py-op">=</tt> <tt id="link-27" class="py-name"><a title="src.configuration.config.Config" class="py-name" href="#" onclick="return doclink('link-27', 'Config', 'link-16');">Config</a></tt><tt class="py-op">(</tt><tt id="link-28" class="py-name"><a title="src.run.cfgfile
src.run_developer.cfgfile" class="py-name" href="#" onclick="return doclink('link-28', 'cfgfile', 'link-19');">cfgfile</a></tt><tt class="py-op">)</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"><tt id="link-29" class="py-name" targets="Variable src.run.conf=src.run-module.html#conf,Variable src.run_developer.conf=src.run_developer-module.html#conf"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-29', 'conf', 'link-29');">conf</a></tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name"><a title="src.run.configparser
src.run_developer.configparser" class="py-name" href="#" onclick="return doclink('link-30', 'configparser', 'link-26');">configparser</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method src.configuration.config.Config.parse_config()=src.configuration.config.Config-class.html#parse_config"><a title="src.configuration.config.Config.parse_config" class="py-name" href="#" onclick="return doclink('link-31', 'parse_config', 'link-31');">parse_config</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"><tt id="link-32" class="py-name" targets="Variable src.run.min_int=src.run-module.html#min_int,Variable src.run_developer.min_int=src.run_developer-module.html#min_int"><a title="src.run.min_int
src.run_developer.min_int" class="py-name" href="#" onclick="return doclink('link-32', 'min_int', 'link-32');">min_int</a></tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-33', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">getint</tt><tt class="py-op">(</tt><tt class="py-string">"analysis"</tt><tt class="py-op">,</tt> <tt class="py-string">"min_per_int"</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line"><tt id="link-34" class="py-name" targets="Method src.output.outputmanager.Output_manager.export_plot()=src.output.outputmanager.Output_manager-class.html#export_plot,Variable src.run.export_plot=src.run-module.html#export_plot,Variable src.run_developer.export_plot=src.run_developer-module.html#export_plot"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-34', 'export_plot', 'link-34');">export_plot</a></tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-35', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">getboolean</tt><tt class="py-op">(</tt><tt class="py-string">"export"</tt><tt class="py-op">,</tt><tt class="py-string">"plot"</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line"><tt id="link-36" class="py-name" targets="Method src.output.outputmanager.Output_manager.export_csv()=src.output.outputmanager.Output_manager-class.html#export_csv,Variable src.run.export_csv=src.run-module.html#export_csv,Variable src.run_developer.export_csv=src.run_developer-module.html#export_csv"><a title="src.output.outputmanager.Output_manager.export_csv
src.run.export_csv
src.run_developer.export_csv" class="py-name" href="#" onclick="return doclink('link-36', 'export_csv', 'link-36');">export_csv</a></tt> <tt class="py-op">=</tt> <tt id="link-37" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-37', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">getboolean</tt><tt class="py-op">(</tt><tt class="py-string">"export"</tt><tt class="py-op">,</tt><tt class="py-string">"csv"</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line"> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"><tt id="link-38" class="py-name" targets="Variable src.run.dbinput=src.run-module.html#dbinput,Variable src.run_developer.dbinput=src.run_developer-module.html#dbinput"><a title="src.run.dbinput
src.run_developer.dbinput" class="py-name" href="#" onclick="return doclink('link-38', 'dbinput', 'link-38');">dbinput</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Database_input</tt><tt class="py-op">(</tt><tt id="link-39" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-39', 'conf', 'link-29');">conf</a></tt><tt class="py-op">)</tt>  </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"><tt class="py-comment"># the new data is in written to conf.links (which contains link-data and lists for records)</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line"><tt id="link-40" class="py-name"><a title="src.run.dbinput
src.run_developer.dbinput" class="py-name" href="#" onclick="return doclink('link-40', 'dbinput', 'link-38');">dbinput</a></tt><tt class="py-op">.</tt><tt class="py-name">import_data</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line"><tt id="link-41" class="py-name" targets="Variable src.run.links=src.run-module.html#links,Variable src.run_developer.links=src.run_developer-module.html#links"><a title="src.run.links
src.run_developer.links" class="py-name" href="#" onclick="return doclink('link-41', 'links', 'link-41');">links</a></tt> <tt class="py-op">=</tt> <tt id="link-42" class="py-name"><a title="src.run.dbinput
src.run_developer.dbinput" class="py-name" href="#" onclick="return doclink('link-42', 'dbinput', 'link-38');">dbinput</a></tt><tt class="py-op">.</tt><tt class="py-name">get_links</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line"> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line"><tt class="py-comment"># aggregate data if necessary</tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt id="link-43" class="py-name"><a title="src.run.min_int
src.run_developer.min_int" class="py-name" href="#" onclick="return doclink('link-43', 'min_int', 'link-32');">min_int</a></tt> <tt class="py-op">&gt;</tt> <tt class="py-number">15</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line">    <tt id="link-44" class="py-name"><a title="src.run.dbinput
src.run_developer.dbinput" class="py-name" href="#" onclick="return doclink('link-44', 'dbinput', 'link-38');">dbinput</a></tt><tt class="py-op">.</tt><tt class="py-name">aggregate</tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="src.run.min_int
src.run_developer.min_int" class="py-name" href="#" onclick="return doclink('link-45', 'min_int', 'link-32');">min_int</a></tt><tt class="py-op">)</tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line"> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line"><tt class="py-comment"># process and output for each single link ("link-indicators")</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"><tt class="py-keyword">for</tt> <tt id="link-46" class="py-name" targets="Variable src.datastructure.agg_record.Agg_record.link=src.datastructure.agg_record.Agg_record-class.html#link,Module src.datastructure.link=src.datastructure.link-module.html"><a title="src.datastructure.agg_record.Agg_record.link
src.datastructure.link" class="py-name" href="#" onclick="return doclink('link-46', 'link', 'link-46');">link</a></tt> <tt class="py-keyword">in</tt> <tt id="link-47" class="py-name"><a title="src.run.links
src.run_developer.links" class="py-name" href="#" onclick="return doclink('link-47', 'links', 'link-41');">links</a></tt><tt class="py-op">:</tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">    <tt class="py-comment"># calculate indicators</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line">    <tt id="link-48" class="py-name" targets="Module src.processing.indicatorset=src.processing.indicatorset-module.html,Variable src.run.indicatorset=src.run-module.html#indicatorset,Variable src.run_developer.indicatorset=src.run_developer-module.html#indicatorset"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-48', 'indicatorset', 'link-48');">indicatorset</a></tt> <tt class="py-op">=</tt> <tt id="link-49" class="py-name"><a title="src.processing.link_indicatorset.Link_indicatorset" class="py-name" href="#" onclick="return doclink('link-49', 'Link_indicatorset', 'link-11');">Link_indicatorset</a></tt><tt class="py-op">(</tt><tt id="link-50" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-50', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">"analysis"</tt><tt class="py-op">,</tt> <tt class="py-string">"link_indicators"</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-51" class="py-name"><a title="src.datastructure.agg_record.Agg_record.link
src.datastructure.link" class="py-name" href="#" onclick="return doclink('link-51', 'link', 'link-46');">link</a></tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">    <tt id="link-52" class="py-name"><a title="src.processing.processor.Processor" class="py-name" href="#" onclick="return doclink('link-52', 'Processor', 'link-5');">Processor</a></tt><tt class="py-op">(</tt><tt id="link-53" class="py-name"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-53', 'indicatorset', 'link-48');">indicatorset</a></tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">     </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">    <tt class="py-comment"># export data</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">    <tt id="link-54" class="py-name" targets="Variable src.run.myoutput=src.run-module.html#myoutput,Variable src.run_developer.myoutput=src.run_developer-module.html#myoutput"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-54', 'myoutput', 'link-54');">myoutput</a></tt> <tt class="py-op">=</tt> <tt id="link-55" class="py-name"><a title="src.output.outputmanager.Output_manager" class="py-name" href="#" onclick="return doclink('link-55', 'Output_manager', 'link-8');">Output_manager</a></tt><tt class="py-op">(</tt><tt id="link-56" class="py-name"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-56', 'indicatorset', 'link-48');">indicatorset</a></tt><tt class="py-op">,</tt> <tt id="link-57" class="py-name"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-57', 'export_plot', 'link-34');">export_plot</a></tt><tt class="py-op">,</tt> <tt id="link-58" class="py-name"><a title="src.output.outputmanager.Output_manager.export_csv
src.run.export_csv
src.run_developer.export_csv" class="py-name" href="#" onclick="return doclink('link-58', 'export_csv', 'link-36');">export_csv</a></tt><tt class="py-op">,</tt> <tt id="link-59" class="py-name"><a title="src.datastructure.agg_record.Agg_record.link
src.datastructure.link" class="py-name" href="#" onclick="return doclink('link-59', 'link', 'link-46');">link</a></tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">    <tt id="link-60" class="py-name"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-60', 'myoutput', 'link-54');">myoutput</a></tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-61', 'export_plot', 'link-34');">export_plot</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">    <tt id="link-62" class="py-name"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-62', 'myoutput', 'link-54');">myoutput</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="src.output.outputmanager.Output_manager.export_csv
src.run.export_csv
src.run_developer.export_csv" class="py-name" href="#" onclick="return doclink('link-63', 'export_csv', 'link-36');">export_csv</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line">     </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line"><tt class="py-comment"># process and output for the whole linkset ("network-indicators")</tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line"><tt id="link-64" class="py-name"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-64', 'indicatorset', 'link-48');">indicatorset</a></tt> <tt class="py-op">=</tt> <tt class="py-name">Network_indicatorset</tt><tt class="py-op">(</tt><tt id="link-65" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-65', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">get</tt><tt class="py-op">(</tt><tt class="py-string">"analysis"</tt><tt class="py-op">,</tt> <tt class="py-string">"network_indicators"</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt id="link-66" class="py-name"><a title="src.run.links
src.run_developer.links" class="py-name" href="#" onclick="return doclink('link-66', 'links', 'link-41');">links</a></tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line"><tt id="link-67" class="py-name"><a title="src.processing.processor.Processor" class="py-name" href="#" onclick="return doclink('link-67', 'Processor', 'link-5');">Processor</a></tt><tt class="py-op">(</tt><tt id="link-68" class="py-name"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-68', 'indicatorset', 'link-48');">indicatorset</a></tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line"><tt id="link-69" class="py-name"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-69', 'myoutput', 'link-54');">myoutput</a></tt> <tt class="py-op">=</tt> <tt id="link-70" class="py-name"><a title="src.output.outputmanager.Output_manager" class="py-name" href="#" onclick="return doclink('link-70', 'Output_manager', 'link-8');">Output_manager</a></tt><tt class="py-op">(</tt><tt id="link-71" class="py-name"><a title="src.processing.indicatorset
src.run.indicatorset
src.run_developer.indicatorset" class="py-name" href="#" onclick="return doclink('link-71', 'indicatorset', 'link-48');">indicatorset</a></tt><tt class="py-op">,</tt> <tt id="link-72" class="py-name"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-72', 'export_plot', 'link-34');">export_plot</a></tt><tt class="py-op">,</tt> <tt id="link-73" class="py-name"><a title="src.output.outputmanager.Output_manager.export_csv
src.run.export_csv
src.run_developer.export_csv" class="py-name" href="#" onclick="return doclink('link-73', 'export_csv', 'link-36');">export_csv</a></tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line"><tt id="link-74" class="py-name"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-74', 'myoutput', 'link-54');">myoutput</a></tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-75', 'export_plot', 'link-34');">export_plot</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line"><tt id="link-76" class="py-name"><a title="src.run.myoutput
src.run_developer.myoutput" class="py-name" href="#" onclick="return doclink('link-76', 'myoutput', 'link-54');">myoutput</a></tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="src.output.outputmanager.Output_manager.export_csv
src.run.export_csv
src.run_developer.export_csv" class="py-name" href="#" onclick="return doclink('link-77', 'export_csv', 'link-36');">export_csv</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line"> </tt>
<a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line"><tt class="py-comment"># for developing it is nice to see the plots in the pylab-gui</tt> </tt>
<a name="L84"></a><tt class="py-lineno">84</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt id="link-78" class="py-name"><a title="src.output.outputmanager.Output_manager.export_plot
src.run.export_plot
src.run_developer.export_plot" class="py-name" href="#" onclick="return doclink('link-78', 'export_plot', 'link-34');">export_plot</a></tt> <tt class="py-keyword">and</tt> <tt id="link-79" class="py-name"><a title="src.run.conf
src.run_developer.conf" class="py-name" href="#" onclick="return doclink('link-79', 'conf', 'link-29');">conf</a></tt><tt class="py-op">.</tt><tt class="py-name">getboolean</tt><tt class="py-op">(</tt><tt class="py-string">"export"</tt><tt class="py-op">,</tt><tt class="py-string">"show_pylab"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L85"></a><tt class="py-lineno">85</tt>  <tt class="py-line">    <tt class="py-name">pylab</tt><tt class="py-op">.</tt><tt class="py-name">show</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno">86</tt>  <tt class="py-line"> </tt>
<a name="L87"></a><tt class="py-lineno">87</tt>  <tt class="py-line"><tt class="py-name">logging</tt><tt class="py-op">.</tt><tt class="py-name">info</tt><tt class="py-op">(</tt><tt class="py-string">"Regular end of application"</tt><tt class="py-op">)</tt> </tt>
<a name="L88"></a><tt class="py-lineno">88</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Oct 25 19:15:44 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
